from rest_framework.urls import url
from rest_framework import routers

from . import views


urlpatterns = [
    # 商品列表
    url(r'^categories/(?P<category_id>\d+)/skus/', views.GoodsListView.as_view()),
]

# 实例化路由
router = routers.DefaultRouter()

# 注册路由
router.register('skus/search', views.SKUSearchViewSet, base_name='skus_search')

# 添加路由
urlpatterns += router.urls
